package com.bootdo.wordbar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.wordbar.dao.WordbarDao;
import com.bootdo.wordbar.domain.WordbarDO;
import com.bootdo.wordbar.service.WordbarService;



@Service
public class WordbarServiceImpl implements WordbarService {
	@Autowired
	private WordbarDao wordbarDao;
	
	@Override
	public WordbarDO get(Integer id){
		return wordbarDao.get(id);
	}
	
	@Override
	public List<WordbarDO> list(Map<String, Object> map){
		return wordbarDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return wordbarDao.count(map);
	}
	
	@Override
	public int count2(Map<String, Object> map){
		return wordbarDao.count2(map);
	}
	
	@Override
	public int save(WordbarDO wordbar){
		return wordbarDao.save(wordbar);
	}
	
	@Override
	public int update(WordbarDO wordbar){
		return wordbarDao.update(wordbar);
	}
	
	@Override
	public int remove(Integer id){
		return wordbarDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return wordbarDao.batchRemove(ids);
	}
	@Override
	public int clear() {
		// TODO Auto-generated method stub
		return wordbarDao.clear();
	}
	
}
